package per.ethan.springboot.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Ethan
 * @date 2020/06/11 11:23
 */
public interface IBaseMapper<Entity> extends BaseMapper<Entity> {

    List<Entity> findByPage(Map<String, Object> map);

    Integer getCount(Map<String, Object> map);

    void batchSave(@Param("entityList") List<Entity> entityList);

}
